// image - 图片处理

"nodejs";

const { requestScreenCapture } = require('media_projection')
const image = require("image");
async function main() {
    const img = await image.decodeImage('../images/1.png')
    console.log(img)
    // const img1 = await image.loadImage("https://picsum.photos/200/300");
    // await image.writeImage(img1, "../images/output-200x300.png");

    const capturer = await image.readImage("../images/1.png");
    const template = await image.readImage("../images/2.png");
    // const img2 = await capturer.nextImage();
    console.log(await image.findImage(capturer, template));
}
main();
